package com.test.vote.mapper;


import com.test.vote.pojo.Match;
import com.test.vote.pojo.Vote;

import java.util.List;
import java.util.Map;

public interface VoteDao {

    int deleteByPrimaryKey(Integer voteId);

    int insert(Vote record);

    Vote ifVote(Vote vote);

    int insertSelective(Vote record);

    Vote selectByPrimaryKey(Integer voteId);

    int updateByPrimaryKeySelective(Vote record);

    List<Map<String,Integer>> selctTop(Match match);

    int updateByPrimaryKey(Vote record);
}